package cn.wolfcode.springboot_consumer._01_hello;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Author: 乱梦天真
 * @Description: TODO
 * @Date: 2020/5/10 16:20
 */
@Component
@RocketMQMessageListener(
        topic = "01_boot_hello",
        consumerGroup = "wolfcode-consumer"
)
public class Consumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String msg) {
        System.out.println(msg);
    }
}